﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quail.Silverlight
{
    /// <summary>
    /// The silverlight TextBox control
    /// </summary>
    public class SlvTextBox : SlvControl 
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBox"/> class.
        /// </summary>
        public SlvTextBox()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBox"/> class.
        /// </summary>
        /// <param name="container">The container for the control.</param>
        /// <param name="selector">The selector.</param>
        public SlvTextBox(SlvControlContainer container, string selector)
            : base(container, selector)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvTextBox"/> class.
        /// </summary>
        /// <param name="control">The control.</param>
        public SlvTextBox(SlvControl control)
            : base(control)
        {
        }

        /// <summary>
        /// Gets or sets the value of the text box
        /// </summary>
        public string Value
        {
            get
            {
            	return GetPropertyValue("Value");
            }

            set
            {
				SetPropertyValue("Value", value);
            }
        }
    }
}
